

<% var pageLevelJS = { %>
<%include("/WEB-INF/views/btl/template/include/select2.html"){}%>
<link rel="stylesheet" href="${plugin}/tool/zTree/css/zTreeStyle/zTreeStyle.css" type="text/css">
<script type="text/javascript" src="${plugin}/tool/zTree/js/jquery.ztree.core.min.js"></script>
<script type="text/javascript" src="${plugin}/tool/zTree/js/jquery.ztree.excheck.min.js"></script>
<script type="text/javascript">
var settings = {
		 modelDomainFlag:"auth"
		 ,modelName:"角色"
		 ,modelFlag:"role"
		 ,key:"${sessionId}" 
		}
</script> 
<script type="text/javascript" src="${ctx}/static/fw/js/fw-inputTree.js"></script>
<script type="text/javascript" src="${ctx}/static/js/auth/role/edit.js"></script>
<%};%> 
<% var layoutParas =
{"title":"","add":isEmpty(data.id),"formId":"applyeditForm","pageLevelJS":pageLevelJS};
layout("/WEB-INF/views/btl/template/backBasicEditFormTemplate.html", layoutParas){ %>
	  <input type="hidden" name="id" value="${data.id}">
   <%if(isEmpty(data.id)){%>
   <input type="hidden" valid="true" name="instanceId" oldval="${data.instanceId}" value="${data.instanceId}">
   <input type="hidden" valid="true" name="pId" oldval="${data.pId!}" value="${data.pId!}">
   <div class="form-group  col-md-5">
       <label for="name" class="col-sm-3 control-label no-padding-right">上级角色:</label>
       <div class="col-sm-9 inline-height ">
			  <input type="text" value="${data.pName}" class="disabled col-xs-10" disabled="disabled" name="pName" placeholder="" />
 	    </div> 
   </div>
   <%}else{%>
   <input type="hidden" valid="true" name="instanceId" oldval="${data.instanceId}" value="${data.instanceId}">
   <input type="hidden" valid="true" name="pId" oldval="${data.parent.id}" value="${data.parent.id}">
   <div class="form-group  col-md-5">
       <label for="name" class="col-sm-3 control-label no-padding-right">上级角色:</label>
       <div class="col-sm-9 inline-height ">
			  <input type="text" value="${data.parent.name}" class="disabled col-xs-10" disabled="disabled" name="pName" placeholder="" />
 	    </div> 
   </div>
   <%}%> 
     <div class="form-group col-md-5">
     <label class="required-before col-sm-3 control-label no-padding-right" for="name">角色名:</label>
     <div class="col-sm-9 inline-height">
    	 <input type="text" oldval="${data.name}" value="${data.name}" class="validate[required,maxSize[50]] col-xs-10" name="name" placeholder="角色名">
	</div>
  </div>
  <div class="form-group col-md-5">
     <label for="remark" class="col-sm-3 control-label no-padding-right">备注:</label>
     <div class="col-sm-9 inline-height">
	    <input type="text"  oldval="${data.remark}" value="${data.remark}" class="validate[maxSize[50]] col-xs-10" name="remark" placeholder="备注">
	  </div>
  </div>	  
<%} %>
